package com.ysjy.course.redis;

import lombok.extern.slf4j.Slf4j;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;


/**
 * 封装redis操作接口
 *
 * @author wuxq
 */
@Component
@Slf4j
public class IMRedisTemplateUtil extends RedisTemplateUtil {


//    private RedisTemplate<String, Object> redisTemplate;
//
//    @Autowired
//    public RedisTemplateUtil(@Qualifier("redisTemplate") RedisTemplate<String, Object> redisTemplate) {
//        this.redisTemplate = redisTemplate;
//    }

    @Resource
    private RedisTemplate<String, Object> template3;


    @PostConstruct
    public void init(){
        super.redisTemplate = template3;
    }


}
